class PasswordsController < ApplicationController
  def new
  end

  def create
    @staffer = Staffer.new(password: params[:password],
      password_confirmation: params[:confirmation],
      login_name: params[:login_name])
    if @staffer.save
      redirect_to ruiqu_stores_path
    else
      render :new
    end
  end

  private
  def staffer_params
    params = { password: params[:password],
      password_confirmation: params[:confirmation],
      login_name: params[:login_name]}
  end
end
